//
//  DBTest.m
//  YouthOlympic2014
//
//  Created by Li Yuhang on 14-7-3.
//  Copyright (c) 2014年 mitian. All rights reserved.
//

#import <XCTest/XCTest.h>
#import "MessageService.h"

@interface DBTest : XCTestCase

@end

@implementation DBTest

- (void)setUp
{
    [super setUp];
}

- (void)tearDown
{
    // Put teardown code here. This method is called after the invocation of each test method in the class.
    [super tearDown];
}

- (void) testDB
{
    MessageService* service = [[MessageService alloc] init];
    NSLog(@"========%li", (long)[service countUnreadMsg]);
    NSLog(@"%@",[service getAllMessages]);
}

@end
